<?php

namespace App\Repos;

use App\Models\ProductSpec;

class ProductSpecRepo 
{
    public static function getList()
    {
    	return ProductSpec::select('id','name')->get();
    }

    public static function update($where,$data)
    {
    	return ProductSpec::where($where)->update($data);
    }

    public static function create($data)
    {
    	return ProductSpec::create($data);
    }

    public static function delete($id)
    {
    	return ProductSpec::destroy($id);
    }
}
